package Messages;
import java.io.Serializable;

/**
 * Message object that is used for Remote Procedure Calls.
 * For more details on MessageType, Check Enum MessageType.java
 */
public class MessageAbi implements Serializable {
	MessageType message;
	int proposalNum;
	
	public MessageAbi()
	{
		
	}
	
	public MessageAbi(MessageType msgType)
	{
		this.message=msgType;
	}
	
	
	public MessageAbi(MessageType msgType,int proposalNum)
	{
		this.message=msgType;
		this.proposalNum=proposalNum;
	}
	
	// MessageType getters and setters
	public MessageType getMessageType() {
		return message;
	}

	public void setMessageType(MessageType messageType) {
		this.message = messageType;
	}
	
	// proposalNum getters and setters
	public int getProposalNum()
	{
		return this.proposalNum;
	}
	
	public void setProposalNum(int proposalNum)
	{
		this.proposalNum=proposalNum;
	}


}
